<?php

namespace Corp\Http\Controllers\Admin;

use Illuminate\Http\Request;

use Corp\Http\Requests;
use Corp\Http\Controllers\Controller;

use Gate;

class IndexController extends AdminController
{
    //
    public function __construct() {

    	parent::__construct();

    	if (Gate::denies('VIEW_ADMIN')) {
    		abort(403);
    	}

    	$this->template = config('app.theme').'.admin.index';
    }

    public function index() {

    	$this->title = 'Admin Panel';

    	return $this->renderOutput();

    }
}
